<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>The SoapClient class</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.use-soap-error-handler.html">use_soap_error_handler</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="soapclient.call.html">SoapClient::__call</a></div>
 <div class="up"><a href="book.soap.html">SOAP</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="class.soapclient" class="reference">

 <h1 class="title">The <a href="class.soapclient.html" class="classname">SoapClient</a> class</h1>
 

 <div class="partintro"><p class="verinfo">(PHP 5 &gt;= 5.0.1)</p>


  <div class="section" id="soapclient.intro">
   <h2 class="title">简介</h2>
   <p class="para">
    The SoapClient class provides a client for <a href="http://www.w3.org/TR/soap11/" class="link external">&raquo;&nbsp;SOAP 1.1</a>, <a href="http://www.w3.org/TR/soap12/" class="link external">&raquo;&nbsp;SOAP 1.2</a> servers. It can be used in WSDL
  or non-WSDL mode.
   </p>
  </div>


  <div class="section" id="soapclient.synopsis">
   <h2 class="title">类摘要</h2>


   <div class="classsynopsis">
    <div class="ooclass"></div>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <strong class="classname">SoapClient</strong>
     </span>
     {</div>

    
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 方法 */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">mixed</span><span class="methodname"><a href="soapclient.call.html" class="methodname">__call</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$function_name</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$arguments</code></span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><a href="soapclient.soapclient.html" class="methodname">SoapClient</a></span>
    ( <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$wsdl</code></span>
   [, <span class="methodparam"><span class="type">array</span> <code class="parameter">$options</code></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">string</span><span class="methodname"><a href="soapclient.dorequest.html" class="methodname">__doRequest</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$request</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$location</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$action</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$version</code></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$one_way</code><span class="initializer"> = 0</span></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">array</span><span class="methodname"><a href="soapclient.getfunctions.html" class="methodname">__getFunctions</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">string</span><span class="methodname"><a href="soapclient.getlastrequest.html" class="methodname">__getLastRequest</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">string</span><span class="methodname"><a href="soapclient.getlastrequestheaders.html" class="methodname">__getLastRequestHeaders</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">string</span><span class="methodname"><a href="soapclient.getlastresponse.html" class="methodname">__getLastResponse</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">string</span><span class="methodname"><a href="soapclient.getlastresponseheaders.html" class="methodname">__getLastResponseHeaders</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">array</span><span class="methodname"><a href="soapclient.gettypes.html" class="methodname">__getTypes</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span><span class="methodname"><a href="soapclient.setcookie.html" class="methodname">__setCookie</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$value</code></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">string</span><span class="methodname"><a href="soapclient.setlocation.html" class="methodname">__setLocation</a></span>
    ([ <span class="methodparam"><span class="type">string</span> <code class="parameter">$new_location</code></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span><span class="methodname"><a href="soapclient.setsoapheaders.html" class="methodname">__setSoapHeaders</a></span>
    ([ <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$soapheaders</code></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">mixed</span><span class="methodname"><a href="soapclient.soapcall.html" class="methodname">__soapCall</a></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$function_name</code></span>
   , <span class="methodparam"><span class="type">array</span> <code class="parameter">$arguments</code></span>
   [, <span class="methodparam"><span class="type">array</span> <code class="parameter">$options</code></span>
   [, <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$input_headers</code></span>
   [, <span class="methodparam"><span class="type">array</span> <code class="parameter reference">&$output_headers</code></span>
  ]]] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><a href="soapclient.soapclient.html" class="methodname">SoapClient</a></span>
    ( <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$wsdl</code></span>
   [, <span class="methodparam"><span class="type">array</span> <code class="parameter">$options</code></span>
  ] )</div>

   }</div>


  </div>

 </div>

 



































































































<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="soapclient.call.html">SoapClient::__call</a> — Calls a SOAP function (deprecated)</li><li><a href="soapclient.construct.html">SoapClient::__construct</a> — SoapClient constructor</li><li><a href="soapclient.dorequest.html">SoapClient::__doRequest</a> — Performs a SOAP request</li><li><a href="soapclient.getfunctions.html">SoapClient::__getFunctions</a> — Returns list of available SOAP functions</li><li><a href="soapclient.getlastrequest.html">SoapClient::__getLastRequest</a> — Returns last SOAP request</li><li><a href="soapclient.getlastrequestheaders.html">SoapClient::__getLastRequestHeaders</a> — Returns the SOAP headers from the last request</li><li><a href="soapclient.getlastresponse.html">SoapClient::__getLastResponse</a> — Returns last SOAP response</li><li><a href="soapclient.getlastresponseheaders.html">SoapClient::__getLastResponseHeaders</a> — Returns the SOAP headers from the last response</li><li><a href="soapclient.gettypes.html">SoapClient::__getTypes</a> — Returns a list of SOAP types</li><li><a href="soapclient.setcookie.html">SoapClient::__setCookie</a> — The __setCookie purpose</li><li><a href="soapclient.setlocation.html">SoapClient::__setLocation</a> — Sets the location of the Web service to use</li><li><a href="soapclient.setsoapheaders.html">SoapClient::__setSoapHeaders</a> — Sets SOAP headers for subsequent calls</li><li><a href="soapclient.soapcall.html">SoapClient::__soapCall</a> — Calls a SOAP function</li><li><a href="soapclient.soapclient.html">SoapClient::SoapClient</a> — SoapClient constructor</li></ul>
</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.use-soap-error-handler.html">use_soap_error_handler</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="soapclient.call.html">SoapClient::__call</a></div>
 <div class="up"><a href="book.soap.html">SOAP</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
